/*
 * Copyright (C) 2009 M. Hautle.
 * 
 * This file is part of TrackedBean.
 * 
 * TrackedBean is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * TrackedBean is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License along with TrackedBean. If not, see <http://www.gnu.org/licenses/>.
 */
package ch.trackedbean.data;

import java.util.*;
import ch.trackedbean.copier.annotations.*;
import ch.trackedbean.validator.annotations.*;
import ch.trackedbean.validator.defaultValidators.*;

public class DomB extends DomA {
    public static final String ATTR_LIST_B = "listB";

    public static final String ATTR_SIMPLE = "simple";

    public static final String ATTR_EXTERNAL_B = "externalB";

    /** Property mapped via {@link ExternalMapping}. */
    @Range(min = 4)
    private int externalB;

    /** Property mapped via {@link SimpleMapping} but with {@link SimpleMapping#srcClass()} set. */
    @Length(min = 3)
    private String simple;

    /** Simple list with full {@link CollectionMapping}. */
    @DeepValidation
    private List<DomA> listB;

    /**
     * @return Returns the externalB.
     */
    public int getExternalB() {
        return externalB;
    }

    /**
     * @param externalB The externalB to set.
     */
    public void setExternalB(int externalB) {
        this.externalB = externalB;
    }

    /**
     * @return Returns the simple.
     */
    public String getSimple() {
        return simple;
    }

    /**
     * @param simple The simple to set.
     */
    public void setSimple(String simple) {
        this.simple = simple;
    }

    /**
     * @return Returns the listB.
     */
    public List<DomA> getListB() {
        return listB;
    }

    /**
     * @param listB The listB to set.
     */
    public void setListB(List<DomA> listB) {
        this.listB = listB;
    }
}
